﻿using NUnit.Framework;

namespace AnaMaria.Tests
{
    [TestFixture]
    public class StillPostTests
    {
        public class MyRolf : sp.contracts.IRolf
        {
            public string Concat(string text)
            {
                return "MyRolf" + text;
            }
        }

        [Test]
        public void Test1()
        {
            var rolf = new MyRolf();
            
            var am = new AnaMaria(rolf);
            string result = am.Concat("TestString");
            string expected = "MyRolfTestStringAnaMaria";
            Assert.That(result, Is.EqualTo(expected));
        }
    }
}
